package me.hys.dao.doctor;

import java.util.List;
import java.util.Map;

import me.hys.bo.company.MessageBo;
import me.hys.bo.company.ProductBo;
import me.hys.bo.doctor.DoctorBo;
import me.hys.entity.doctor.CollectionEntity;

/**
 * Author: @author HYS . <br>
 * Date: 2015-10-11 下午8:26:02 . <br>
 * Function: 收藏记录
 */
public interface ICollectionMapper {
	/**
	 * @Title : delete
	 * @Description : 取消收藏
	 */
	int delete(int id);

	/**
	 * @Title : deleteByUnionKey
	 * @Description : 删除
	 */
	int deleteByUnionKey(CollectionEntity entity);

	/**
	 * @Title : findByUnionKey
	 * @Description : 查询
	 */
	int findByUnionKey(CollectionEntity entity);

	/**
	 * @Title : save
	 * @Description : 收藏
	 */
	void save(CollectionEntity entity);

	List<DoctorBo> findDoctorPage(Map<String, Object> condtion);

	int findDoctorPageCount(Map<String, Object> condtion);

	List<MessageBo> findMessagePage(Map<String, Object> condtion);

	int findMessagePageCount(Map<String, Object> condtion);

	List<ProductBo> findProductPage(Map<String, Object> condtion);

	int findProductPageCount(Map<String, Object> condtion);
}
